package com.example.demo.create.singleton;

/**
 * @Desc:
 * @Author zzz
 * @Date 2021/2/9
 * @Version V1.0
 */
public class InnerClass {

    private InnerClass() {}

    private static class InstanceHolder {
        private static final InnerClass INSTANCE = new InnerClass();
    }

    public InnerClass getInstance() {
        return InstanceHolder.INSTANCE;
    }

}
